import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router/index.js';
import VueDND from 'awe-dnd';								// 引入拖动排序
import http from "./uitls/http"
import moment from 'moment';
import store from '@/store/index.js';
import md5 from 'js-md5';  //密码加密
// import lrz from 'lrz';  //图片压缩
import * as imageConversion from 'image-conversion';
import Tim from '@/components/custome/index.js'
import axios from '../src/api/api.js';
import $ from 'jquery';
Vue.prototype.$axios = axios;
Vue.prototype.$http = http;
Vue.prototype.$md5 = md5;
Vue.config.productionTip = false;
Vue.prototype.$imageConversion = imageConversion
Vue.use(ElementUI);
Vue.use(VueDND);
Vue.use(Tim);
Vue.prototype.$moment = moment;//间戳转换时间格式

// import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
import { Select, Steps } from 'ant-design-vue';
import 'ant-design-vue/lib/select/style/css';
import 'ant-design-vue/lib/steps/style/css';
Vue.use(Select);
Vue.use(Steps);

import vcolorpicker from 'vcolorpicker';
Vue.use(vcolorpicker);

// import { able } from 'ant-design-vue';
// import 'nt-design-vue/lib/table/style/css'; // 或者 ant-design-vue/lib/button/style/css 加载 css 文件
// Vue.use(table);
// Vue.prototype.$Message = message;
// Vue.use(Antd);


// canvas粒子效果
import VueParticles from 'vue-particles'
Vue.use(VueParticles)

//时间戳转换时间格式
Vue.filter('dateformat', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(dataStr*1000).format(pattern)
})

new Vue({
  render: h => h(App),
  router,
  store,
  // lrz
}).$mount('#app')
